package com.cz.bean;

import com.alibaba.fastjson.JSON;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

import java.util.Date;

/**
 * Created by Administrator on 2014/12/23.
 */
@XmlRootElement(name = "user")
public class User {
    protected String id;
    @NotNull(message = "name is a required field.")
    protected String name;
    @NotNull(message = "password is a required field.")
    protected String password;
    protected String nick;
    protected int gender;

    protected int nationality;
    protected int nation;
    protected int province;
    protected int city;
    protected int district;
    protected String address;
    protected int residence_type;

    protected String phone;
    protected String mobile;
    protected String email;
    protected String birthday;

    protected int credential_type;
    protected String credential_code;
    protected String true_name;
    protected int marriage;
    protected int occupational_type;
    protected int edu_level;
    protected int mi_type;

    protected String em_contact;
    protected String em_phone;

    protected String avatar;
    protected String create_t;
    protected boolean enabled;

    protected String qq;
    protected String weixin;
    protected String wangwang;
    protected int politics;
    protected int zodiac;
    protected int constellation;
    protected String community;
    protected String healthcare_card;
    protected String agedness_card;
    protected String spouse_status;
    protected String spouse_name;
    protected String contact;
    protected int user_class;
    protected int service_class;
    protected int source;
    protected int area;

    public String getArea_info() {
        return area_info;
    }

    public void setArea_info(String area_info) {
        this.area_info = area_info;
    }

    protected String area_info;

    public String getWangwang() {
        return wangwang;
    }

    public void setWangwang(String wangwang) {
        this.wangwang = wangwang;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getNationality() {
        return nationality;
    }

    public void setNationality(int nationality) {
        this.nationality = nationality;
    }

    public int getNation() {
        return nation;
    }

    public void setNation(int nation) {
        this.nation = nation;
    }

    public int getProvince() {
        return province;
    }

    public void setProvince(int province) {
        this.province = province;
    }

    public int getCity() {
        return city;
    }

    public void setCity(int city) {
        this.city = city;
    }

    public int getDistrict() {
        return district;
    }

    public void setDistrict(int district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getResidence_type() {
        return residence_type;
    }

    public void setResidence_type(int residence_type) {
        this.residence_type = residence_type;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public int getCredential_type() {
        return credential_type;
    }

    public void setCredential_type(int credential_type) {
        this.credential_type = credential_type;
    }

    public String getCredential_code() {
        return credential_code;
    }

    public void setCredential_code(String credential_code) {
        this.credential_code = credential_code;
    }

    public String getTrue_name() {
        return true_name;
    }

    public void setTrue_name(String true_name) {
        this.true_name = true_name;
    }

    public int getMarriage() {
        return marriage;
    }

    public void setMarriage(int marriage) {
        this.marriage = marriage;
    }

    public int getOccupational_type() {
        return occupational_type;
    }

    public void setOccupational_type(int occupational_type) {
        this.occupational_type = occupational_type;
    }

    public int getEdu_level() {
        return edu_level;
    }

    public void setEdu_level(int edu_level) {
        this.edu_level = edu_level;
    }

    public int getMi_type() {
        return mi_type;
    }

    public void setMi_type(int mi_type) {
        this.mi_type = mi_type;
    }

    public String getEm_contact() {
        return em_contact;
    }

    public void setEm_contact(String em_contact) {
        this.em_contact = em_contact;
    }

    public String getEm_phone() {
        return em_phone;
    }

    public void setEm_phone(String em_phone) {
        this.em_phone = em_phone;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCreate_t() {
        return create_t;
    }

    public void setCreate_t(String create_t) {
        this.create_t = create_t;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public int getPolitics() {
        return politics;
    }

    public void setPolitics(int politics) {
        this.politics = politics;
    }

    public int getZodiac() {
        return zodiac;
    }

    public void setZodiac(int zodiac) {
        this.zodiac = zodiac;
    }

    public int getConstellation() {
        return constellation;
    }

    public void setConstellation(int constellation) {
        this.constellation = constellation;
    }

    public String getCommunity() {
        return community;
    }

    public void setCommunity(String community) {
        this.community = community;
    }

    public String getHealthcare_card() {
        return healthcare_card;
    }

    public void setHealthcare_card(String healthcare_card) {
        this.healthcare_card = healthcare_card;
    }

    public String getAgedness_card() {
        return agedness_card;
    }

    public void setAgedness_card(String agedness_card) {
        this.agedness_card = agedness_card;
    }

    public String getSpouse_status() {
        return spouse_status;
    }

    public void setSpouse_status(String spouse_status) {
        this.spouse_status = spouse_status;
    }

    public String getSpouse_name() {
        return spouse_name;
    }

    public void setSpouse_name(String spouse_name) {
        this.spouse_name = spouse_name;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public int getUser_class() {
        return user_class;
    }

    public void setUser_class(int user_class) {
        this.user_class = user_class;
    }

    public int getService_class() {
        return service_class;
    }

    public void setService_class(int service_class) {
        this.service_class = service_class;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public int getArea() {
        return area;
    }

    public void setArea(int area) {
        this.area = area;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", nick='" + nick + '\'' +
                ", gender=" + gender +
                ", nationality=" + nationality +
                ", nation=" + nation +
                ", province=" + province +
                ", city=" + city +
                ", district=" + district +
                ", address='" + address + '\'' +
                ", residence_type=" + residence_type +
                ", phone='" + phone + '\'' +
                ", mobile='" + mobile + '\'' +
                ", email='" + email + '\'' +
                ", birthday='" + birthday + '\'' +
                ", credential_type=" + credential_type +
                ", credential_code='" + credential_code + '\'' +
                ", marriage=" + marriage +
                ", occupational_type=" + occupational_type +
                ", edu_level=" + edu_level +
                ", mi_type=" + mi_type +
                ", em_contact='" + em_contact + '\'' +
                ", em_phone='" + em_phone + '\'' +
                ", avatar='" + avatar + '\'' +
                ", create_dt='" + create_t + '\'' +
                ", enabled=" + enabled +
                ", qq='" + qq + '\'' +
                ", weixin='" + weixin + '\'' +
                ", wangwang='" + wangwang + '\'' +
                ", politics=" + politics  +
                ", zodiac=" + zodiac  +
                ", constellation=" + constellation  +
                ", community='" + community + '\'' +
                ", healthcare_card='" + healthcare_card + '\'' +
                ", agedness_card='" + agedness_card + '\'' +
                ", spouse_status='" + spouse_status + '\'' +
                ", spouse_name='" + spouse_name + '\'' +
                ", contact='" + contact + '\'' +
                ", user_class=" + user_class +
                ", service_class=" + service_class +
                ", source=" + source +
                ", area=" + area +
                ", area_info=" + area_info +
                '}';
    }

    public String toJson() {
        return JSON.toJSONString(this);
    }
}
